<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>ToonWatch Admin &raquo;<g:layoutTitle default="Welcome" /></title>
    <link rel = "stylesheet" href ="<g:createLinkTo dir='css' file='commonStyle.css' />" />
    <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
    <g:layoutHead />
    <g:javascript library="application" />
  </head>
  <body>
    <div class="wrapper">
      <div class="logo">
        <div><g:link uri='/adminHome.gsp' absolute="true"><img src="${resource(dir: 'images', file: 'toonwatch_logo.png')}" alt="Home"/></img></g:link></div>
        <div class="wrapper2">
          <div id="statusTab"> 
            <sec:ifLoggedIn>Hi <sec:username/> <g:link controller='logout'>[Logout]</g:link> You have an Admin right!
            </sec:ifLoggedIn>
            <sec:ifNotLoggedIn> Welcome to ToonWatch.com <g:link controller='login'> Login </g:link> here!
            </sec:ifNotLoggedIn>
          </div>
        </div>
      </div>
      <div id="navbod">
        <ul id="nav">
          <li class="current"><g:link uri='/adminHome.gsp' absolute="true">Home</g:link></li>
          <li><a href="#">Accounts</a>
            <ul>
              <li><g:link controller='user' action='userSearch' absolute="true">Search users</g:link></li>
            </ul>
          </li>
          <li><a href="#">Products</a>
            <ul>
              <li><g:link controller='category' action='list' absolute="true">Manage Categories</g:link></li>
              <li><g:link controller='item' action='list' absolute="true">Manage Items</g:link></li>
            </ul>
          </li>
          <li><a href="#">Transactions</a>
            <ul>
              <li><a href="#">Sales Record</a></li>
            </ul>
          </li>
          <li><a href="#">Vouchers</a>
            <ul>
              <li><g:link controller='voucher' action='issueVoucher' absolute="true">Issue Voucher</g:link></li>
              <li><g:link controller='voucher' action='list' absolute="true">List Users' Vouchers</g:link></li>
            </ul>
          </li>
          <li><a href="#">Administration</a>
            <ul>
              <li><g:link controller='voucher' action='newsletter' absolute="true">Send Newsletter</g:link></li>
              <li><a href="#">Retrieve Error Log</a></li>
            </ul>
          </li>
        </ul>
      </div>
      <div id="content">
        <g:layoutBody />
      </div>
      <div id="footer">
        &copy; Copyright 2011. All right reserved. ToonWatch.com
      </div>
    </div>
  </body>
</html>
